package pratice.leetcode;

import org.junit.Test;

/**
 * @author 吴宇亮 on 2019/5/6 0006 下午 12:59
 */
public class Pratice9 {

    @Test
    public boolean isPalindrome(int x) {
        String value = String.valueOf(x);
        StringBuilder sb = new StringBuilder(value);

        return sb.reverse().toString().equals(value);
    }
}
